package com.zimin.cloud.system.pojo.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.zimin.mapper.pojo.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;

/**
 * <p>
 * 部门
 * </p>
 *
 * @author zimin
 * @since 2021-12-30 11:05
 */
@Getter
@Setter
@TableName("sys_dept")
@ApiModel(value = "Dept对象", description = "部门")
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class Dept extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("父部门ID")
    @TableField("parent_id")
    private String parentId;

    @ApiModelProperty("组级列表")
    @TableField("ancestors")
    private String ancestors;

    @ApiModelProperty("部门名称")
    @TableField("dept_name")
    private String deptName;

    @ApiModelProperty("排序")
    @TableField("sort")
    private Integer sort;

    @ApiModelProperty("负责人")
    @TableField("leader")
    private String leader;

    @ApiModelProperty("手机号")
    @TableField("mobile")
    private String mobile;

    @ApiModelProperty("邮箱")
    @TableField("email")
    private String email;

    @ApiModelProperty("状态(1 正常 0 停用)")
    @TableField("status")
    private Integer status;

    @ApiModelProperty("删除标志(0 正常 1删除)")
    @TableField("is_delete")
    @TableLogic
    private Integer del;

    @ApiModelProperty("创建人")
    @TableField("create_by")
    private String createBy;

    @ApiModelProperty("更新人")
    @TableField("update_by")
    private String updateBy;


}
